package com.zjsd.sqeybusiness.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 企业产品分类对象 product_category
 *
 * @author Zheng
 * @date 2020-11-05
 */
public class ProductCategory extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 产品分类ID */
    private Long categoryId;

    /** 企业ID */
    @Excel(name = "企业ID")
    private Long companyId;

    /** 分类名称 */
    @Excel(name = "分类名称")
    private String name;

    /** 分类图片 */
    @Excel(name = "分类图片")
    private String image;

    /** 排序 */
    @Excel(name = "排序")
    private Integer sort;

    /** 上级分类ID */
    @Excel(name = "上级分类ID")
    private Long parentId;

    private Long deptId ;

    public void setCategoryId(Long categoryId)
    {
        this.categoryId = categoryId;
    }

    public Long getCategoryId()
    {
        return categoryId;
    }
    public void setCompanyId(Long companyId)
    {
        this.companyId = companyId;
    }

    public Long getCompanyId()
    {
        return companyId;
    }
    public void setName(String name)
    {
        this.name = name;
    }

    public String getName()
    {
        return name;
    }
    public void setImage(String image)
    {
        this.image = image;
    }

    public String getImage()
    {
        return image;
    }
    public void setSort(Integer sort)
    {
        this.sort = sort;
    }

    public Integer getSort()
    {
        return sort;
    }
    public void setParentId(Long parentId)
    {
        this.parentId = parentId;
    }

    public Long getParentId()
    {
        return parentId;
    }

    public Long getDeptId() {
        return deptId;
    }

    public void setDeptId(Long deptId) {
        this.deptId = deptId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("categoryId", getCategoryId())
            .append("companyId", getCompanyId())
            .append("name", getName())
            .append("image", getImage())
            .append("sort", getSort())
            .append("parentId", getParentId())
            .append("deptId",getDeptId())
            .toString();
    }
}
